package com.adingxiong.orderservice.service;

import com.adingxiong.pojo.Order;
import com.adingxiong.service.OrderService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @ClassName OrderServiceImpl
 * @Description TODO
 * @Author xiongchao
 * @Date 2020/7/30 15:20
 **/
@Service
@Slf4j
public class OrderServiceImpl implements OrderService {


    @Override
    public Order getOrder(String s) {
        Order order = new Order();
        order.setId(s);
        return order;
    }

    @Override
    public void addOrder(Order order) {
        log.info("保存订单："+order);
    }
}
